<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
        .radio-inline input[type=radio] {
            margin-top: 4px
        }
    </style>
</head>

<body style="color:#333;padding:3px;">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">非常规促销执行情况一览表</h2>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="table-bordered table text-left">
            {if $data.net_id}
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">网点名称：</label></td>
                <td><a href="javascript:;">{:db('cg_net')->where('id',$data.net_id)->value('title')}</a></td>
                <td style="min-width: 160px;width: 160px"><label for="">网点地址：</label></td>
                <td>{:db('cg_net')->where('id',$data.net_id)->value('detailaddress')}</td>
                <td style="min-width: 160px;width: 160px"><label for="">所属经销商：</label></td>
                <td>{:db('cg_jxs t')->join('cg_system t2','t2.jxs=t.id')->join('cg_net t3','t3.system_id=t2.id')->where('t3.id',$data.net_id)->value('t.title')}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">网点主要联系人:</label></td>
                <td>
                    {:db('cg_net_ci')->where('net_id',$data.net_id)->value('name')}
                </td>
                <td style="min-width: 160px;width: 160px"><label for="">联系方式：</label></td>
                <td>{:db('cg_net_ci')->where('net_id',$data.net_id)->value('phone')}请查看网点详情获取更多信息。</td>
                <td style="min-width: 160px;width: 160px">活动编号：</td>
                <td>{:db('cg_ti')->where('id',$data.ti_id)->value('sn')}_{$data.sn}</td>
            </tr>
            <tr>
                {if $data.product}
                <td style="min-width: 160px;width: 160px"><label for="">活动产品:</label></td>
                <td>{:db('pro_products')->where('id',$data.product)->value('pro_name')}</td>
                {/if}
                {if $data.brand}
                <td style="min-width: 160px;width: 160px"><label for="">活动品牌:</label></td>
                <td>{:db('pro_brands')->where('id',$data.brand)->value('brand_name')}</td>
                {/if}
                {if $data.category}
                <td style="min-width: 160px;width: 160px"><label for="">活动品类:</label></td>
                <td>{:db('pro_category')->where('id',$data.category)->value('category_name')}</td>
                {/if}
                {if $data.series}
                <td style="min-width: 160px;width: 160px"><label for="">活动系列:</label></td>
                <td>{:db('pro_series')->where('id',$data.series)->value('series_name')}</td>
                {/if}
                {if $data.sku}
                <td style="min-width: 160px;width: 160px"><label for="">活动sku:</label></td>
                <td>{:db('pro_sku')->where('id',$data.sku)->value('sku_name')}</td>
                {/if}
                <td style="min-width: 160px;width: 160px"><label for="">三级费用科目：</label></td>
                <td>{:db('cg_feiyongkemu3')->where('id',$data.feetype)->value('title')}</td>
                <td style="min-width: 160px;width: 160px">申请费用额：</td>
                <td>{$data.amount}元</td>
            </tr>
            {else}
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">经销商名称：</label></td>
                <td><a href="javascript:;">{:db('cg_jxs')->where('id',$data.jxs_id)->value('title')}</a></td>
                <td style="min-width: 160px;width: 160px">活动编号：</td>
                <td>{:db('cg_ti')->where('id',$data.ti_id)->value('sn')}_{$data.sn}</td>
            </tr>
            <tr>
                {if $data.product}
                <td style="min-width: 160px;width: 160px"><label for="">活动产品:</label></td>
                <td>{:db('pro_products')->where('id',$data.product)->value('pro_name')}</td>
                {/if}
                {if $data.brand}
                <td style="min-width: 160px;width: 160px"><label for="">活动品牌:</label></td>
                <td>{:db('pro_brands')->where('id',$data.brand)->value('brand_name')}</td>
                {/if}
                {if $data.category}
                <td style="min-width: 160px;width: 160px"><label for="">活动品类:</label></td>
                <td>{:db('pro_category')->where('id',$data.category)->value('category_name')}</td>
                {/if}
                {if $data.series}
                <td style="min-width: 160px;width: 160px"><label for="">活动系列:</label></td>
                <td>{:db('pro_series')->where('id',$data.series)->value('series_name')}</td>
                {/if}
                {if $data.sku}
                <td style="min-width: 160px;width: 160px"><label for="">活动sku:</label></td>
                <td>{:db('pro_sku')->where('id',$data.sku)->value('sku_name')}</td>
                {/if}
                <td style="min-width: 160px;width: 160px"><label for="">三级费用科目：</label></td>
                <td>{:db('cg_feiyongkemu3')->where('id',$data.feetype)->value('title')}</td>
                <td style="min-width: 160px;width: 160px">申请费用额：</td>
                <td>{$data.amount}元</td>
            </tr>
            {/if}
        </table>
        <table class="row-margin-top table-bordered table text-center">
            <tr class="warning">
                <td colspan="8" class="font-bold">活动现场</td>
            </tr>
            <tr class="info">
                <td>序号</td>
                <td>日期</td>
                <td>建议核销</td>
                <td>提交人</td>
                <td>活动相片</td>
                <td>数据采集地址</td>
                <td>距离偏差</td>
                <td>活动描述</td>
            </tr>
            
            <tr class="noText" >
                <td colspan="8">无活动现场信息</td>
            </tr>
        </table>
       <table class="row-margin-top table-bordered table text-center">
            <tr class="warning">
                <td colspan="9" class="font-bold">活动反馈</td>
            </tr>
            <tr class="info">
                <td>日期</td>
                <td>提交人</td>
                <td>预计销量(元)</td>
                <td>实际销量(元)</td>
                <td>预计花费(元)</td>
                <td>实际花费(元)</td>
                <td>活动照片</td>
                <td>活动心得</td>
                <td>操作</td>
            </tr>
            {if $fb}
            <tr>
                <td>{$data.fb_time}</td>
                <td>{$data.fb_user}</td>
                <td>{$data.totalExpectedSales}</td>
                <td>{$data.fb_shijixiaoliang}</td>
                <td>{$data.pizhunhanshui}</td>
                <td>{$data.fb_shijitourufeiyong}</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td><a href="{:url('Tifeedback/view')}?id={$fb.id}">查看详情</a></td>
            </tr>
            {else/}
             <tr >
                <td colspan="9">无反馈信息</td>
            </tr>
            {/if}
        </table>
        <table class="row-margin-top table-bordered table text-center">
            <tr class="warning">
                <td colspan="8" class="font-bold">活动检核</td>
            </tr>
            <tr class="info">
                <td>日期</td>
                <td>提交人</td>
                <td>检核地址</td>
                <td>距离偏差</td>
                <td>活动相片</td>
                <td>核查结果</td>
                <td>详细结果</td>
                <td>操作</td>
            </tr>
            <tr>
                <td colspan="8">无核查信息</td>
            </tr>
        </table>
    </form>
</div>
<!-- 全局js -->
{include file="Public/footer"}
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

</body>
</html>
